package com.xiaxiaoge.tutorialmod.event;

import com.xiaxiaoge.tutorialmod.TutorialMod;
import com.xiaxiaoge.tutorialmod.entity.ModEntityTypes;
import com.xiaxiaoge.tutorialmod.entity.custom.DiamonsurdEntity;
import com.xiaxiaoge.tutorialmod.entity.custom.DingDongChickenEntity;
import com.xiaxiaoge.tutorialmod.entity.custom.MySnowManEntity;
import com.xiaxiaoge.tutorialmod.entity.custom.VictoriousSwiftTwoEntity;
import net.minecraftforge.event.entity.EntityAttributeCreationEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
/**
 * @author 夏小哥
 * @version 1.0
 */
public class ModEvents {
    @Mod.EventBusSubscriber(modid = TutorialMod.MOD_ID)
    public static class ForgeEvents {

    }

    @Mod.EventBusSubscriber(modid = TutorialMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
    public static class ModEventBusEvents {

        @SubscribeEvent
        public static void entityAttributeEvent(EntityAttributeCreationEvent event) {
            event.put(ModEntityTypes.DIAMONSURD.get(), DiamonsurdEntity.setAttributes());
            event.put(ModEntityTypes.NewSnowMan.get(), MySnowManEntity.setAttributes());
            event.put(ModEntityTypes.DING_DONG_CHICKEN.get(), DingDongChickenEntity.setAttributes());
            event.put(ModEntityTypes.VICTORIOUS_SWIFT_TWO.get(), VictoriousSwiftTwoEntity.createAttributes().build());
        }
    }
}
